export default {
	data() {
		return {
			fenxiaoWords: {}
		}
	},
	methods: {
		async getFenxiaoWrods() {
			let res = await this.$api.sendRequest({
				url: '/fenxiao/api/config/words',
				async: false
			})
			if (res.code >= 0 && res.data) {
				this.fenxiaoWords = res.data;
				uni.setStorageSync('fenxiaoWords', res.data);
			}
		}
	},
	async onShow() {
		if (uni.getStorageSync('fenxiaoWords')) this.fenxiaoWords = uni.getStorageSync('fenxiaoWords');
		await this.getFenxiaoWrods();
	}
}
